class CreateBoardFiles < ActiveRecord::Migration
  def self.up
    create_table :board_files do |t|
      # t.column :name, :string
	t.column :file_name, :string , :null => false
	t.column :mime_type , :string 
	t.column :length , :integer 
	t.column :register_date , :datetime 
	t.column :board_post_id, :integer, :null => false
    end
  end

  def self.down
    drop_table :board_files
  end
end
